<?php
  class Plugins_Formdata1 extends model {
  
  
  
  function getformadd($productid="")
  {
  

  
$code  = '<div class="wrpPlg clBg5 clBd2 bdFull">'."\n";
$code .= '<div class="wrpOutAtcPlg">'."\n";
$code .= '<div class="wrpAtcPlg">'."\n";
$code .= '<span class="ico icoOri icoFrmPlg"></span>'."\n";
$code .= '<div class="spnAtcPlg clTxtW">'."\n";
$code .= '<span class="txtAtcPlg fs03">Information</span>'."\n";
$code .= '</div>'."\n";
$code .= '</div>'."\n";
$code .= '</div>'."\n";
$code .= '<div class="wrpTl">'."\n";
$code .= '<div title="Close" class="btnIco closeTl clBd3 mgBtm10 deleterowbutton">'."\n";
$code .= '<span class="ico icoCloseTl"></span>'."\n";
$code .= '</div>'."\n";
$code .= '</div>'."\n";
$code .= '<form class="frmFrmPlg clTxt3 fs03">'."\n";
$code .= '<fieldset class="wrpFrmPlg">'."\n";
$code .= '<div class="wrpHdInfoGen mgBtm10">'."\n";
$code .= '<h2 class="fs04 clTxt2">Information</h2>'."\n";
$code .= '</div>'."\n";
$code .= '<table class="tbGenInfo tbAddCtnt clTxt3 fs03">'."\n";
$code .= '<tbody><tr>'."\n";
$code .= '<th>UIP</th>'."\n";
$code .= '<td>'."\n";
$code .= '<input type="text" name="uip[]" class="clBg5 clBd2 fs03 clTxt2" kl_virtual_keyboard_secure_input="on">'."\n";
$code .= '</td>'."\n";
$code .= '</tr>'."\n";
$code .= '<tr>'."\n";
$code .= '<th>Download</th>'."\n";
$code .= '<td>'."\n";
$code .= '<input type="text" name="download[]" class="clBg5 clBd2 fs03 clTxt2" kl_virtual_keyboard_secure_input="on">'."\n";
$code .= '</td>'."\n";
$code .= '</tr>'."\n";
$code .= '<tr>'."\n";
$code .= '<th>Engagement</th>'."\n";
$code .= '<td>'."\n";
$code .= '<input type="text" name="engagement[]" class="clBg5 clBd2 fs03 clTxt2" kl_virtual_keyboard_secure_input="on">'."\n";
$code .= '</td>'."\n";
$code .= '</tr>'."\n";
$code .= '<tr>'."\n";
$code .= '<th>Like &amp; Follow</th>'."\n";
$code .= '<td>'."\n";
$code .= '<input type="text" name="likefollow[]" class="clBg5 clBd2 fs03 clTxt2" kl_virtual_keyboard_secure_input="on">'."\n";
$code .= '</td>'."\n";
$code .= '</tr>'."\n";

$code .= '<tr>'."\n";
$code .= '<th>No. Printing</th>'."\n";
$code .= '<td>'."\n";
$code .= '<input type="text" name="printing[]" class="clBg5 clBd2 fs03 clTxt2" kl_virtual_keyboard_secure_input="on">'."\n";
$code .= '</td>'."\n";
$code .= '</tr>'."\n";

$code .= '<tr>'."\n";
$code .= '<th>PageView</th>'."\n";
$code .= '<td>'."\n";
$code .= '<input type="text" name="pageview[]" class="clBg5 clBd2 fs03 clTxt2" kl_virtual_keyboard_secure_input="on">'."\n";
$code .= '</td>'."\n";
$code .= '</tr>'."\n";

$code .= '</tbody></table>'."\n";
$code .= '<div class="wrpHdInfoGen mgBtm10">'."\n";
$code .= '<h2 class="fs04 clTxt2">Contact</h2>'."\n";
$code .= '</div>'."\n";
$code .= '<table class="tbGenInfo tbAddCtnt clTxt3 fs03">'."\n";
$code .= '<tbody><tr>'."\n";
$code .= '<th>Email</th>'."\n";
$code .= '<td>'."\n";
$code .= '<input type="text" name="email[]" class="clBg5 clBd2 fs03 clTxt2" kl_virtual_keyboard_secure_input="on">'."\n";
$code .= '</td>'."\n";
$code .= '</tr>'."\n";
$code .= '<tr>'."\n";
$code .= '<th>Phone</th>'."\n";
$code .= '<td>'."\n";
$code .= '<input type="text" name="phone[]" class="clBg5 clBd2 fs03 clTxt2" kl_virtual_keyboard_secure_input="on">'."\n";
$code .= '</td>'."\n";
$code .= '</tr>'."\n";
$code .= '</tbody></table>'."\n";
$code .= '</fieldset>'."\n";
$code .= '</form>'."\n";
$code .= '</div>';
  
  
  $arraydata['form']=addslashes(str_replace(array("\r", "\n", "\r"), '', $code));
  //$arraydata['js'][]=pluginjsinfo.'/text.js';


  
  
      
  
  
  
  return $arraydata;
  
  
  
  
  
  
  
  }
  
  function getformlanding($arraydata)
  {
  
  
$code  = '<div class="ldIt wrpFrmLd wrpInfoPlgLd clBg4">'."\n";
$code .= '<div class="wrpHdInfoGen mgBtm10">'."\n";
$code .= '<h2 class="clTxt2 fs04 boldGen">Information</h2>'."\n";
$code .= '</div>'."\n";
$code .= '<table class="tbGenInfo tbFrmLd clTxt3 fs03">'."\n";
$code .= '<tbody><tr>'."\n";
$code .= '<th>UIP</th>'."\n";
$code .= '<td>'.$arraydata['uip'].'</td>'."\n";
$code .= '</tr>'."\n";
$code .= '<tr>'."\n";
$code .= '<th>Download</th>'."\n";
$code .= '<td>'.$arraydata['download'].'</td>'."\n";
$code .= '</tr>'."\n";
$code .= '<tr>'."\n";
$code .= '<th>Engagement</th>'."\n";
$code .= '<td>'.$arraydata['engagement'].'</td>'."\n";
$code .= '</tr>'."\n";
$code .= '<tr>'."\n";
$code .= '<th>Like &amp; Follow</th>'."\n";
$code .= '<td>'.$arraydata['likefollow'].'</td>'."\n";
$code .= '</tr>'."\n";
$code .= '<tr>'."\n";
$code .= '<th>No. Printing</th>'."\n";
$code .= '<td>'.$arraydata['printing'].'</td>'."\n";
$code .= '</tr>'."\n";

$code .= '<tr>'."\n";
$code .= '<th>Page View</th>'."\n";
$code .= '<td>'.$arraydata['pageview'].'</td>'."\n";
$code .= '</tr>'."\n";

$code .= '</tbody></table>'."\n";
$code .= '<div class="wrpHdInfoGen mgBtm10">'."\n";
$code .= '<h2 class="clTxt2 fs04 boldGen">Contact</h2>'."\n";
$code .= '</div>'."\n";
$code .= '<table class="tbGenInfo tbFrmLd clTxt3 fs03">'."\n";
$code .= '<tbody><tr>'."\n";
$code .= '<th>Email</th>'."\n";
$code .= '<td>'.$arraydata['email'].'</td>'."\n";
$code .= '</tr>'."\n";
$code .= '<tr>'."\n";
$code .= '<th>Phone</th>'."\n";
$code .= '<td>'.$arraydata['phone'].'</td>'."\n";
$code .= '</tr>'."\n";
$code .= '</tbody></table>'."\n";
$code .= '</div>';
 
   $data['str']=$code;
   $data['target']='secondtarget';
  
  return $data; 
  
  }
  
  function getplugin($plugreid)
  {
  
 
     $sql="select * from tb_plugins_formdata1 where plugreid=".$plugreid;
     $arrayplugin=$this->db->db_set_1recordrow($sql);

  
     return $arrayplugin;

  
  
  

  
  }
  
  function saveplugin($arraydata,$productid,$plugreid)
  {
  $arraydata['productid']=$productid;
  $arraydata['plugreid']=$plugreid;
  $this->db->db_set($arraydata,'tb_plugins_formdata1');
  
  }
 
  
  
  }
?>
